package com.example.eureka_user.utils.dataSourceUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/7/12.
 */
public class DataSourceTypeSheet {

    private Map<String,String> compony_placeCode = new HashMap<>();
    private Map<String,String> placeCode_dataSource = new HashMap<>();
    private Map<String,String> placeCode_customerProperty = new HashMap<>();

    private static class LazyHolder {
        private static final DataSourceTypeSheet INSTANCE = new DataSourceTypeSheet();
    }
    private DataSourceTypeSheet (){
        /**WeChat*/
        String weChat_placeCode = DataSourceEnum.weChat.getValue();
        this.compony_placeCode.put("default",weChat_placeCode);
        this.placeCode_dataSource.put(weChat_placeCode,"wechatDataSource");

        /**前锋icceka*/
        String icceka_placeCode = DataSourceEnum.icceka.getValue();
        this.compony_placeCode.put("成都前锋电子仪器",icceka_placeCode);
        this.placeCode_dataSource.put(icceka_placeCode,"iccekaDataSource");
        this.placeCode_customerProperty.put(icceka_placeCode,"customerProperties/test");

        /**无线数据库*/
        String wireLess_placeCode = DataSourceEnum.wireLess.getValue();
        this.compony_placeCode.put("wireLess",wireLess_placeCode);
        this.placeCode_dataSource.put(wireLess_placeCode,"wireLessDataSource");
        this.placeCode_customerProperty.put(wireLess_placeCode,"customerProperties/test");

    }
    public static final DataSourceTypeSheet getInstance() {
        return LazyHolder.INSTANCE;
    }

    public Map<String, String> getCompony_placeCode() {
        return compony_placeCode;
    }

    public Map<String, String> getPlaceCode_dataSource() {
        return placeCode_dataSource;
    }

    public Map<String, String> getPlaceCode_customerProperty() {
        return placeCode_customerProperty;
    }
}
